package com.mallbook.model.pojo;

/**
 * @Author 宋明松
 * @Version V1.0.0
 * @Date 2022-06-23
 * 用户收货地址实体类
 */
public class Address {
    private Integer id;
    private String consignee;
    private String province;
    private String city;
    private String area;
    private String street;
    private String tel;
    private Integer state;
    private Integer userId;

    private Integer upstate;// 条件。修改默认地址

    public Integer getUpstate() {
        return upstate;
    }

    public void setUpstate(Integer upstate) {
        this.upstate = upstate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", consignee='" + consignee + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", area='" + area + '\'' +
                ", street='" + street + '\'' +
                ", tel='" + tel + '\'' +
                ", state=" + state +
                ", usrId=" + userId +
                '}';
    }
}
